﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ctrlSesion.ascx.cs" Inherits="Rendiciones.Web.usercontrols.ctrlSesion" %>
<%@ Register Src="~/usercontrols/ctrlCambiarContrasena.ascx" TagPrefix="uc1" TagName="ctrlCambiarContrasena" %>
<div class="vs12_light_panel_right">
    <span class="vs12_light_span">Bienvenido</span>
    <asp:Label ID="lblNombreUsuario" CssClass="vs12_light_span" runat="server" Text="[Nombre Usuario]"></asp:Label>
    <span class="vs12_light_span">|</span>
    <asp:LinkButton ID="lnkCambiarContrasena" CssClass="vs12_light_link" runat="server" Text="Cambiar contraseña" OnClick="LnkCambiarContrasenaClick"></asp:LinkButton>
    <span class="vs12_light_span">|</span>
    <asp:LinkButton ID="lnkCerrarSesion" runat="server" CssClass="vs12_light_link" Text="Cerrar Sesión" OnClick="LnkCerrarSesionClick"></asp:LinkButton>
    <br />
    <ul class="vs12_light_linkmenu">
        <li>
            <asp:Label ID="lblRol" class="vs12_light_span" runat="server" Text="[Rol]"></asp:Label>
            <span class="vs12_light_span" Id="lblSeparador" runat="server">|</span>
            <a href="#" class="vs12_light_link">Cambiar</a>
            <div class="vs12_light_menu" style="width: 200px;" Id="divMenu" runat="server">
                <asp:Repeater runat="server" ID="rptRoles" OnItemCommand="RptRolesItemCommand">
                    <HeaderTemplate>
                    <ul>            
                    </HeaderTemplate>
                    <ItemTemplate>
                        <li><asp:LinkButton ID="lblRol" runat="server" Text='<%#Eval("Descripcion")%>' CommandName="seleccionar" CommandArgument='<%#Eval("IdRol")%>'/></li>
                    </ItemTemplate>
                    <FooterTemplate>
                    </ul>            
                    </FooterTemplate>
                </asp:Repeater>
            </div>
        </li>
    </ul>
</div>
<uc1:ctrlCambiarContrasena runat="server" ID="ctrlCambiarContrasena" />
